<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<script>
    var fraction =prompt('请输入您的成绩');
    if(fraction>=90){
        console.log('A');
    }else if(fraction>=80 && fraction < 90){
        console.log('B');
    }else if(fraction >=70 && fraction <80){
        console.log('C');
    }else if (fraction>=60 && fraction<70){
        console.log('D');
    }else{
        console.log('菜鸡');
    }
</script>
<body>
    
</body>
</html>